package com.cipe.cmrs.model;

import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.Role
 * </p>
 * 
 * <p>
 * Generated at Sat Dec 03 14:39:50 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "Role")
@SuppressWarnings("serial")
public class Role extends BaseAuditEntity {

	/**
	 * Attribute displayName.
	 */
	@Basic
	@Column(name = "rolename", length = 100)
	private String					displayName;
	/**
	 * List of Roleprivileges
	 */
	@OneToMany(mappedBy = "role")
	private List<Roleprivileges>	roleprivilegess	= null;
	/**
	 * List of Userrole
	 */
	@OneToMany(mappedBy = "role")
	private List<Userrole>			userroles		= null;

	/**
	 * @return displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * Get the list of Roleprivileges
	 */
	public List<Roleprivileges> getRoleprivilegess() {
		return this.roleprivilegess;
	}

	/**
	 * Get the list of Userrole
	 */
	public List<Userrole> getUserroles() {
		return this.userroles;
	}

	/**
	 * @param displayName
	 *            new value for displayName
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * Set the list of Roleprivileges
	 */
	public void setRoleprivilegess(List<Roleprivileges> roleprivilegess) {
		this.roleprivilegess = roleprivilegess;
	}

	/**
	 * Set the list of Userrole
	 */
	public void setUserroles(List<Userrole> userroles) {
		this.userroles = userroles;
	}
}